<?php 

 header("Content-type: text/html; charset=utf-8");
require("conn.php");

$data = $_POST['data'];
$data=json_decode($data,true);



$sql = "select * from notice   ";
$result=mysql_query($sql,$conn);

$notice=Array();
$k=0;
while ($row= mysql_fetch_assoc($result)) {
	$sinfer= $row;
	$sinfer['tai'] = date('Y-m-d H:i:s',$row['tai']);
	$notice[$k]  = $sinfer;
	$k++;
	
}


echo  json_encode($notice);
